<?php
class retrieve_contenttable_admin extends retrieve_base{

	private $module_display_options 	= array(
		array("CONTENTTABLE_DISPLAY", "LOCALE_CONTENTTABLE_DISPLAY_CHANNEL")
	);
	/**
	* function produces abstract structure of modules db structure
	*
    * used to generate the table structure required abstract function that passes an abstract
	* representation of the desired table structure to the proper database module which will
	* interpet the abstract and convert it into a valid SQL Create table structure.
	*
	* @return Array list of abstract table definitions for this module
	*/
	function create_table(){
		$tables = array();
		/**
		* Table structure for table 'content_table'
		*/
		$fields = array(
			array("ct_identifier"		,"unsigned integer"			,"NOT NULL"	,"auto_increment","key"),
			array("ct_client"			,"unsigned integer"			,"NOT NULL"	,"default '0'","key"),
			array("ct_label"			,"varchar(255)"				,"NOT NULL"	,"default ''"),
			array("ct_creation_date"	,"datetime"					,"NOT NULL"	,"default '0000-00-00 00:00:00'"),
			array("ct_status"			,"unsigned small integer"	,"NOT NULL"	,"default '0'"),
			array("ct_display_type"		,"unsigned small integer"	,"NOT NULL"	,"default '0'"), // 0 = list, 1 = dropdown
			array("ct_all_locations"	,"unsigned small integer"	,"NOT NULL"	,"default '0'"),
			array("ct_set_inheritance"	,"unsigned small integer"	,"NOT NULL"	,"default '0'"),
			array("ct_show_label"		,"unsigned small integer"	,"NOT NULL"	,"default '1'"),
			array("ct_show_folders"		,"unsigned small integer"	,"NOT NULL"	,"default '1'"),
			array("ct_show_menu"		,"unsigned small integer"	,"NOT NULL"	,"default '1'"),
			array("ct_show_home"		,"unsigned small integer"	,"NOT NULL"	,"default '1'")
		);
		$primary ="ct_identifier";
		$tables[count($tables)] = array("content_table", $fields, $primary);
		return $tables;
	}
	
}
?>